package com.dm.flyweight.demo02;

import java.util.ArrayList;
import java.util.List;

public class GlyphContext {
	public StringBuilder content = new StringBuilder();
	
	List<Glyph> glyphs = new ArrayList<Glyph>();
	
	public void add(Glyph g){
		this.glyphs.add(g);
	}
	
	public void draw(){
		this.glyphs.forEach(g->g.draw(this));
	}
}
